<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Debug Popup</title>
    <style>
        body {
            width: 300px;
            padding: 10px;
            font-family: Arial, sans-serif;
        }
        button {
            margin: 5px;
            padding: 8px 12px;
            background: #007cba;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        button:hover {
            background: #005a87;
        }
        #log {
            margin-top: 10px;
            padding: 10px;
            background: #f5f5f5;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: monospace;
            font-size: 12px;
            max-height: 200px;
            overflow-y: auto;
        }
    </style>
</head>
<body>
    <h3>Debug Popup</h3>
    <p>如果看到这个页面，说明弹出窗口正在工作！</p>
    
    <button id="test-button">Test Service Worker</button>
    <button id="check-chrome">Check Chrome API</button>
    <button id="clear-log">Clear Log</button>
    
    <div id="log">等待操作...</div>
    
    <script src="popup-debug.js"></script>
</body>
</html> 